package com.samshow.baseservice;

import com.samshow.baseVo.CaptionRequest;
import com.samshow.baseVo.DeleteCaptionRequest;
import onbon.bx05.file.ControllerConfigBxFile;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by Administrator on 2017/2/14.
 */
public interface BXService {
    @RequestMapping(value = "/sendCaption", method = RequestMethod.POST)
    @ResponseBody
    public boolean sendCaption(@RequestBody CaptionRequest captionRequest);

    @RequestMapping(value = "/setScreen", method = RequestMethod.POST)
    @ResponseBody
    public boolean setScreen(@RequestParam("netIds") String netIds, @RequestBody ControllerConfigBxFile bxFile);

    @RequestMapping(value = "/deleteProgran", method = RequestMethod.POST)
    @ResponseBody
    public boolean deletProgram(@RequestBody List<DeleteCaptionRequest> deleteCaptionRequest);

    @RequestMapping(value = "/{userId}/addProgram", method = RequestMethod.POST)
    @ResponseBody
    public boolean addProgram(@PathVariable("userId")String userId,@RequestBody CaptionRequest captionRequest);

    @RequestMapping(value = "/sendCaption/single", method = RequestMethod.POST)
    @ResponseBody
    public boolean sendCaptionSingle(@RequestParam("netIds")String netId,@RequestParam("netIds")String pId);



}
